//
//  CellForWHTStoryTwoModel.m
//  WZLProduct
//
//  Created by dllo on 16/3/28.
//  Copyright © 2016年 HaiTeng. All rights reserved.
//

#import "CellForWHTStoryTwoModel.h"

@implementation CellForWHTStoryTwoModel

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.contentView.backgroundColor = [UIColor greenColor];
        
        self.detailImg = [[UIImageView alloc] init];
        [self.contentView addSubview:self.detailImg];
        [self.detailImg mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.contentView).with.offset(10);
            make.top.equalTo(self.contentView).with.offset(15);
            make.right.equalTo(self.contentView).with.offset(-10);
            make.height.mas_equalTo(50);
        }];
        self.detailImg.image = [UIImage imageNamed:@"PlaceHolder_Other_Ht"];
        
        self.detailLable = [[UILabel alloc] init];
        self.detailLable.numberOfLines = 0;
        self.detailLable.text = @"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
        self.detailLable.font = FONT15;
        [self.contentView addSubview:self.detailLable];
        [self.detailLable mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.detailImg.mas_bottom);
            make.left.right.equalTo(self.detailImg);
            make.height.mas_equalTo(30);
        }];
        
        
    }
    return self;
}
@end
